using System;
using System.Collections;

namespace JSC.Portal.Search
{
	/// <summary>
	/// Summary description for SearchResultCollection.
	/// </summary>
	public class SearchResultCollection : CollectionBase
	{
		/// <summary>
		/// Property TotalCount (int)
		/// </summary>
        public int TotalCount
        {
            get;
            set;
        }

		/// <summary>
		/// Property PageIndex (int)
		/// </summary>
		public int PageIndex
		{
            get;
            set;
		}

		/// <summary>
		/// The execution time of the query in ticks.
		/// </summary>
		public long ExecutionTime
		{
            get;
            set;
		}

		/// <summary>
		/// Indexer property.
		/// </summary>
		public SearchResult this[int index]
		{
			get { return (SearchResult)List[index]; }
		}

		/// <summary>
		/// 
		/// </summary>
		public SearchResultCollection()
		{
		}

		/// <summary>
		/// 
		/// </summary>
		/// <param name="searchResult"></param>
		public void Add(SearchResult searchResult)
		{
			List.Add(searchResult);
		}

		/// <summary>
		/// 
		/// </summary>
		/// <param name="searchResult"></param>
		public void Remove(SearchResult searchResult)
		{
			List.Remove(searchResult);
		}
	}
}